<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="title" :append-to-body="true" :close-on-click-modal="false" class="tl-dialog" width="1000px" @open="open" @close="close">
  <div class="app-container">
    <div>
      <!--表格渲染-->
      <el-table class="tl-table" ref="mainTable" height="300px" resizable-key="tableHeight" :resizable-refs="tableResizeRefs" v-loading="loading" :data="datas" @selection-change="doSelectChange" @sort-change="doSortChange" @row-dblclick="doRowDbClick" @row-click="doRowClick" row-key="id" border fit :row-class-name="doChangeRowClassName">
        <el-table-column type="index" label="序号" width="55px" align="center"></el-table-column>
				<el-table-column prop="taskcode" label="所属任务编码" width="150px"  align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column prop="round" label="轮次" width="100px"  align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="progress" label="任务进度(%)" width="100px"  align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="remark" label="反馈内容" width="250px"  align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column prop="createon" label="提交时间" width="150px"  align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="description" label="备注" min-width="250px" align="left" header-align="center" :show-overflow-tooltip="true"></el-table-column>
      </el-table>
      <!-- 列表分页 -->
      <el-row class="pagebar" ref="pager">
        <el-pagination @size-change="doChangeSize" @current-change="doChangeIndex" :current-page="pageInfo.currentPage" :page-sizes="pageInfo.pageSizes" :total="pageInfo.totalCount" layout="total, sizes, prev, pager, next, jumper" background class="tl-table-pagination"> </el-pagination>
      </el-row>
    </div>
  </div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
/** 子组件 */
/** 工具类 */
import { getAction, putAction, postAction, deleteAction } from '@tapui/utils/http'
export default {
  name: 'cbbPmTaskProgress',
  mixins: [mixin_list],
  components: {},
  data() {
    return {
      title: '反馈历史',
      description: 'WBS任务历史表',
      urlPrefix: '/cbb/cbbPmTaskProgress/',
      url: {
        // queryCodeList: '/pm/cbbPmTaskProgress/dataCodeList'
      },
      // 排序参数
      sorterInfo: {
        sidx: 'createon',
        sord: 'desc'
      },
      isQueryOnCreated: false,
      visible: false
    }
  },
  props: {
    code: {
      type: String,
      default: ''
    },
    round: {
      type: String,
      default: ''
    }
  },
  methods: {
    open() {
      this.$nextTick(() => {
        this.$set(this.queryParam, 'qry_taskcode', this.code)
        // this.$set(this.queryParam, 'qry_round', this.round)
        this.doQuery()
      })
    },
    close() {
      // this.code = ""
      // this.$set(this.queryParam, 'qry_taskcode', "")
      // this.round = ""
      // this.$set(this.queryParam, 'qry_round', "")
    }
  }
}
</script>

<style scoped></style>

